package Array;

/**
 * ClassName: Main
 * Package: Array
 *
 * @Author 马学兴
 * @Create 2023/11/30 23:07
 * @Version 1.0
 * Description:
 */
public class Main {
    public static void main(String[] args) {
        Array<Integer> arr = new Array();
        for (int i = 0; i < 10; i++) {
            arr.addLast(i);
        }
        System.out.println(arr);
        arr.add(1,100);
        System.out.println(arr);
        arr.addFirst(-1);
        System.out.println(arr);

//        arr.remove(2);
//        System.out.println(arr);
//        arr.removeElement(4);
//        System.out.println(arr);
//        System.out.println(arr.removeFirst());
    }
}
